import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    comment_id: null,
    isFocus: false
  },
  mutations: {
    setComment_id(state, id) {
      state.comment_id = id
    },
    setComment_idNull(state) {
      state.comment_id = null
    },

    setFocusTrue(state) {
      state.isFocus = true
    },
    setFocusFalse(state) {
      state.isFocus = false
    }
  },
  actions: {
    setComment_id1({ commit }, id) {
      commit("setComment_id", id)
    },
    setComment_idNull1({ commit }) {
      commit("setComment_idNull")
    },

    setFocusTrue1({ commit }) {
      commit("setFocusTrue")
    },
    setFocusFalse1({ commit }) {
      commit("setFocusFalse")
    }
  },
  modules: {
  }
})
